package com.kelvin.paopao.injector.modules;

import com.kelvin.kelvinlib.db.dao.DaoSession;
import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.main.MainActivity;
import com.kelvin.paopao.module.main.MainPresenter;
import com.kelvin.paopao.module.person.detail.IPersonDetailPresenter;
import com.kelvin.paopao.module.person.detail.PersonDetailActivity;
import com.kelvin.paopao.module.person.detail.PersonDetailPresenter;
import com.kelvin.paopao.rxbus.RxBus;

import dagger.Module;
import dagger.Provides;

/**
 * Created by MCK on 2017/5/18.
 */

@Module
public class MainModule {
    private MainActivity mView;

    public MainModule(MainActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public MainPresenter providerPresenter(RxBus mRxBus) {
        return new MainPresenter(mRxBus, mView);
    }
}
